import request from '@/utils/request'

// 查询activiti代码生成列表
export function listProcessModel(query) {
  return request({
    url: '/process/processModel/list',
    method: 'get',
    params: query
  })
}

// 查询activiti代码生成详细
export function getProcessModel(id) {
  return request({
    url: '/process/processModel/' + id,
    method: 'get'
  })
}

// 新增activiti代码生成
export function addProcessModel(data) {
  return request({
    url: '/process/processModel',
    method: 'post',
    data: data
  })
}

// 修改activiti代码生成
export function updateProcessModel(data) {
  return request({
    url: '/process/processModel',
    method: 'put',
    data: data
  })
}

// 删除activiti代码生成
export function delProcessModel(id) {
  return request({
    url: '/process/processModel/' + id,
    method: 'delete'
  })
}

// 部署activiti代码生成
export function publishProcessModel(id) {
  return request({
    url: '/process/processModel/publish/' + id,
    method: 'post'
  })
}

